From f7a428c62301f915854ba6696c40bccd6c9f3cf6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 7 Oct 2005 19:30:42 +0000 Subject: [PATCH] redirect back to the config page after successful settings apply SVN-Revision: 2069 --- openwrt/package/webif/files/usr/lib/webif/webif.sh | 6 +++--- openwrt/package/webif/files/www/cgi-bin/webif/config.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/openwrt/package/webif/files/usr/lib/webif/webif.sh b/openwrt/package/webif/files/usr/lib/webif/webif.sh index cace65a377..9de03b955b 100644 --- a/openwrt/package/webif/files/usr/lib/webif/webif.sh +++ b/openwrt/package/webif/files/usr/lib/webif/webif.sh @@ -170,9 +170,9 @@ footer() {
- Apply changes «
- Clear changes «
- Review changes $_changes « + Apply changes «
+ Clear changes «
+ Review changes $_changes «
diff --git a/openwrt/package/webif/files/www/cgi-bin/webif/config.sh b/openwrt/package/webif/files/www/cgi-bin/webif/config.sh index 48e31abd83..254884fba4 100755 --- a/openwrt/package/webif/files/www/cgi-bin/webif/config.sh +++ b/openwrt/package/webif/files/www/cgi-bin/webif/config.sh @@ -13,6 +13,7 @@ case "$FORM_mode" in rm -rf /tmp/.webif >&- 2>&- header $FORM_cat . "Configuration: cleared." CHANGES="" + echo "${FORM_prev:+}" ;; review) header $FORM_cat . "Configuration changes:" @@ -37,6 +38,7 @@ case "$FORM_mode" in echo '
'
 		sh /usr/lib/webif/apply.sh
 		echo '
' + echo "${FORM_prev:+}" ;; esac -- 2.30.2